How to add a new SSH key to a server (even if you can't access it)
Youmustgenerateanewkeyusingssh-keygen-trsaandputthenewlycreatedid_rsa.pubfilein~/.ssh/authorized_keysonyourserver.,ClientConfiguration.Setup~/.ssh/config.Settinguphostentriesforsshisreallyeasyandwillsaveyoualotoftrouble.,Nomatterhowyourpublickeyw...。參考影片的文章的如下:


